package com.boot.web.dao;

import com.boot.web.entity.Address;
import com.boot.base.dao.BaseDao;
import com.boot.web.vo.AddressVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户地址数据层接口
 * @author 【zhouJie】
 * @date 2021-06-02 08:43:22
 */
public interface AddressDao extends BaseDao<Address> {

    List<AddressVO> queryAddressVOPageList(Map<String, Object> map);

    List<AddressVO> queryAllAddressVOByUserId(Integer userId);

    Address findAddressByIsDefault(@Param("userId") Integer userId, @Param("isDefault") String isDefault);

    List<Address> queryAddressByUserId(Integer userId);

}
